import request from '@/utils/request'

const talentsProject = {
  list (params) {
    return request.get('/kjrc/talentsProject/list', { params })
  },
  myList (params) {
    return request.get('/kjrc/talentsProject/myList', { params })
  },
  add (formData) {
    return request.post('/kjrc/talentsProject/add', formData)
  },
  update (formData) {
    return request.post('/kjrc/talentsProject/update', formData)
  },
  submit (formData) {
    return request.post('/kjrc/talentsProject/submit', formData)
  },
  getDetailData (id) {
    return request.get(`/kjrc/talentsProject/detail/${id}`)
  },
  delete (id) {
    return request.post(`/kjrc/talentsProject/delete/${id}`)
  },
}

export default talentsProject;
